package com.example.dao;

import com.example.domain.user;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface userDao {

    @Select("select * from user_login where user_id = #{user_id} and user_pw = #{user_pw}")
    public user findAll(user u);

    @Select("select user_id from user_login where user_id = #{user_id}")
    public user judgeUserId(String user_id);

    @Insert("insert into user_login (user_id, user_pw)values(#{user_id}, #{user_pw})")
    public int resUser(user u);
}
